package cn.lhq.service;

import java.sql.Timestamp;

import cn.lhq.bean.User;
import cn.lhq.bean.VoteResult;

public interface UserService {

	public VoteResult createUser(String username,String password,Integer role) throws Exception;
	public User findByName(String username) throws Exception;
	public User findById(int id) throws Exception;
	public VoteResult delete(String username) throws Exception;
	public VoteResult findAll() throws Exception;
	public VoteResult modifyPwd(String username,String password) throws Exception;
	public VoteResult modifyPwd2(String username,String oldPwd,String newPwd) throws Exception;
	public VoteResult checkLogin(String username,String password,Long timestamp) throws Exception;
}
